﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="datalistXML.aspx.vb" Inherits="ProjetoDeTestes.datalistXML" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $(".toggle_container").hide();


            $("h2.trigger").click(function () {
                if ($(this).next().show() == true) {
                    $(this).next().slideToggle("fast", false);
                    //$(this).toggleClass("active").next().slideToggle("fast");
                } else {
                    //$(".toggle_container").hide();
                    //$(this).toggleClass("active").next().slideToggle("fast");
                }
                return false;
            });

        });
    </script>
    <link href="StyleSheet1.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <h2 class="trigger">
        <a href="#">Toggle Header</a></h2>
    <div class="toggle_container">
        <div class="block">
            <h3>
                Content Header</h3>
            010110110101010010 </div>
    </div>
    <br />
    <br />
    <br />
    <div></div>
    <p>
    </p>
    <p>
    </p>
    <asp:DataList ID="dtMenu" runat="server">
        <HeaderTemplate>
            Menu Doidão
        </HeaderTemplate>
        <ItemTemplate>
            <h2 class="trigger">
                <a href="#">
                    <%# Eval("NomeTabela") %></a></h2><div class="toggle_container">
            <div class="block">
                
                    <asp:DataList ID="dtLinks" runat="server" Width="100%">
                        <ItemTemplate>
                            
                                <a href='<%# Eval("link") %>' target="_blank">
                                    <%# Eval("Nome") %></a>
                        </ItemTemplate>
                    </asp:DataList>
                </div>
            </div>
        </ItemTemplate>
    </asp:DataList>
    </form>
</body>
</html>
